<?php

/**
 * @author honestphan
 * @copyright 2012
 */
//G?i t?p tin giao di?n trong thu m?c view/theme/template tuong ?ng

defined('DSVH') or die('Restricted access');
include('model/m_home.php');
include('language/lang_tuyendung.php');
include('controller/c_thongke.php');
include('controller/c_block.php');   	   
       
$page = $_GET['act'];
   switch($page){
        case 'view':
           //lấy danh sach bang tin
    	$list_bangtin = getListbangtin(0,5);
    	$list_lkw = getListlienketweb(0,10);
    	$list_chedosinhhoat = getListchedosinhhoat(0, 5);
    	$list_chuongtrinhhoc = getListchuongtrinhhoc(0,10);
    $list_phongnghi = getListphongnghi(0,10);
        $id = $_REQUEST['id'];
        if($_REQUEST['id']==""){
       	     $list_top_chuongtrinhhoc = getListchuongtrinhhoc(0,1);
        }else{
            $chuongtrinhhoc_detail = getchuongtrinhhoc($id);
        }
        if(!chuongtrinhhoc_detail){
           header('LOCATION: index.php?module=home');  
           exit(); 
        }
        
        $title =home ."".$chuongtrinhhoc_detail['title'];
    	$heading_title=home;
        
    	require('view/theme/default/template/home/header.tpl'); 
    	require('view/theme/default/template/home/left.tpl'); 
    	require('view/theme/default/template/tuyendung/tuyendung_detail.tpl');
    	require('view/theme/default/template/home/footer.tpl');    
        break;
        
        case'list':
        
       	$list_bangtin = getListbangtin(0,5);
    	$list_lkw = getListlienketweb(0,10);
    	
    	$list_chuongtrinhhoc = getListchuongtrinhhoc(0,10);
        $tuyendung_toplist = getListchuongtrinhhoc(0,1);
        $list_chedosinhhoat = getListchedosinhhoat(0, 5);
        $list_phongnghi = getListphongnghi(0,10);
        if(!chuongtrinhhoc_detail){
           header('LOCATION: index.php?module=home');  
           exit(); 
        }
        
        $title =home ."".$chuongtrinhhoc_detail['title'];
    	$heading_title=home;
        
    	require('view/theme/default/template/home/header.tpl'); 
    	require('view/theme/default/template/home/left.tpl'); 
    	require('view/theme/default/template/tuyendung/tuyendung_list.tpl');
    	require('view/theme/default/template/home/footer.tpl');    
        break;
        
        
        }

?>